<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>new (Vu::Window)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File Vu/Window.rb, line 30</span>
                <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span> (<span class="ruby-identifier">title</span> = <span class="ruby-value str">&quot;Vu::Window&quot;</span>)
                        <span class="ruby-keyword kw">super</span>(<span class="ruby-constant">Gtk</span><span class="ruby-operator">::</span><span class="ruby-constant">Window</span>.<span class="ruby-identifier">new</span>)
                        
                        <span class="ruby-identifier">gtk_peer</span>.<span class="ruby-identifier">app_paintable</span> = <span class="ruby-keyword kw">true</span>
                        <span class="ruby-identifier">gtk_peer</span>.<span class="ruby-identifier">set_colormap</span>(<span class="ruby-identifier">gtk_peer</span>.<span class="ruby-identifier">screen</span>.<span class="ruby-identifier">rgba_colormap</span>)
                        
                        <span class="ruby-comment cmt"># close button pressed</span>
                        <span class="ruby-identifier">gtk_peer</span>.<span class="ruby-identifier">signal_connect</span>(<span class="ruby-value str">&quot;delete-event&quot;</span>) <span class="ruby-keyword kw">do</span>
                                <span class="ruby-identifier">close_button_handle</span>
                        <span class="ruby-keyword kw">end</span>
                        <span class="ruby-identifier">gtk_peer</span>.<span class="ruby-identifier">title</span> = <span class="ruby-identifier">title</span>
                <span class="ruby-keyword kw">end</span></pre>
</body>
</html>